<?php

// Development configurations
return array(
    'modules' => array(
        'gii' => array(
            'class' => 'system.gii.GiiModule',
            'password' => 'gii',
        ),
    ),
    'components' => array(
        'db' => array(
            'class' => 'CDbConnection',
            'connectionString' => DB_CONNECTION,
            'emulatePrepare' => true,
            'username' => DB_USER,
            'password' => DB_PWD,
            'charset' => 'utf8',
            'tablePrefix' => '',
        ),
        'log' => array(
            'routes' => array(
                //set the log component to show logs on the bottom of the page - similar to CakePHP
                array(
                    'class' => 'CWebLogRoute',
                    'levels' => 'trace, info, error, warning',
                    'categories' => 'system.db.*',
                ),
            ),
        ),
        'widgetFactory' => array(
            'widgets' => array(
                'EJuiTimePicker' => array(
                    'options' => array(
                        'dateFormat' => 'dd/mm/yy'
                    )
                )
            )
        ),
    ),
);